<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        var obj = {
            name : 'zs'
        }
        var obj1 = {
            sex : '男',
            age : 22
        }
        for ( var k in obj1 ) {
            obj[k] = obj1[k]
        }
        console.log(obj)
    </script>
</head>
<body>

</body>
</html>